  -- Gathios the Shatterer --
function spell0_22949(pUnit, Event) --@Blessing of Protection,n/a--
pUnit:FullCastSpellOnTarget(41450,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 15000, 1)
end
function spell1_22949(pUnit, Event) --@Blessing of Spell Warding,n/a--
pUnit:FullCastSpellOnTarget(41451,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 15000, 1)
end
function spell2_22949(pUnit, Event) --@Chromatic Resistance Aura,n/a--
pUnit:FullCastSpellOnTarget(41453,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 30000, 1)
end
function spell3_22949(pUnit, Event) --@Consecration,n/a--
pUnit:FullCastSpellOnTarget(41541,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 20000, 1)
end
function spell4_22949(pUnit, Event) --@Devotion Aura,n/a--
pUnit:FullCastSpellOnTarget(41452,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 30000, 1)
end
function spell5_22949(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(41468,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 6417, 1)
end
function spell6_22949(pUnit, Event) --@Judgement,n/a--
pUnit:FullCastSpellOnTarget(41467,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 2000, 1)
end
function spell7_22949(pUnit, Event) --@Seal of Blood,n/a--
pUnit:FullCastSpellOnTarget(41459,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 30000, 1)
end
function spell8_22949(pUnit, Event) --@Seal of Command,n/a--
pUnit:FullCastSpellOnTarget(41469,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 30000, 1)
end
function spell9_22949(pUnit, Event) --@Seal of Command,n/a--
pUnit:FullCastSpellOnTarget(42058,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22949', 888, 1)
end
function Sorts_22949(pUnit, Event)
choix_sorts_22949 = math.random(0, 9)
if choix_sorts_22949 == 0 then
pUnit:RegisterEvent('spell0_22949', 1, 1)
end
if choix_sorts_22949 == 1 then
pUnit:RegisterEvent('spell1_22949', 1, 1)
end
if choix_sorts_22949 == 2 then
pUnit:RegisterEvent('spell2_22949', 1, 1)
end
if choix_sorts_22949 == 3 then
pUnit:RegisterEvent('spell3_22949', 1, 1)
end
if choix_sorts_22949 == 4 then
pUnit:RegisterEvent('spell4_22949', 1, 1)
end
if choix_sorts_22949 == 5 then
pUnit:RegisterEvent('spell5_22949', 1, 1)
end
if choix_sorts_22949 == 6 then
pUnit:RegisterEvent('spell6_22949', 1, 1)
end
if choix_sorts_22949 == 7 then
pUnit:RegisterEvent('spell7_22949', 1, 1)
end
if choix_sorts_22949 == 8 then
pUnit:RegisterEvent('spell8_22949', 1, 1)
end
if choix_sorts_22949 == 9 then
pUnit:RegisterEvent('spell9_22949', 1, 1)
end
end
function mob22949_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22949', math.random(1500, 3000), 1)
end
function mob22949_Leave(pUnit, Event)
end
function mob22949_Kill(pUnit, Event)
end
function mob22949_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(22949, 1, 'mob22949_Action')
RegisterUnitEvent(22949, 2, 'mob22949_Leave')
RegisterUnitEvent(22949, 3, 'mob22949_Kill')
RegisterUnitEvent(22949, 4, 'mob22949_Die')
